package cn.vendcommon.com.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
@ConfigurationProperties(prefix = "auth")
public class AuthProperties {
    /**
     * 白名单路径，支持 spring 的 Ant 风格通配符，比如：
     * - /ai/chat/sendStream
     * - /system/login/**
     * - /public/**
     */
    private List<String> whitelist = new ArrayList<>();

    public List<String> getWhitelist() {
        return whitelist;
    }

    public void setWhitelist(List<String> whitelist) {
        this.whitelist = whitelist;
    }
}
